package com.letoken.platform.repo.mall.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商家提现配置
 * </p>
 *
 * @author 作者
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("admin_mall_withdrawal_config")
@ApiModel(value = "AdminMallWithdrawalConfig对象", description = "商家提现配置")
public class AdminMallWithdrawalConfig extends Model<AdminMallWithdrawalConfig> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @ApiModelProperty("提现金额阀值")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("手续费")
    @TableField("fee")
    private BigDecimal fee;

    @ApiModelProperty("是否需要支付密码 0.需要 1.不需要")
    @TableField("is_sure")
    private Integer isSure;

    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("余额")
    @TableField(exist = false)
    private BigDecimal account;

    @ApiModelProperty("余额")
    @TableField(exist = false)
    private BigDecimal amountCAP;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
